Correct way to create private methods in an interface Java